import request from '@/utils/request'

export const listAllCheckitem = () =>
    request({
        url: '/tCheckitem/all',
        method: 'get'
})

export const queryCheckitemStatus = () =>
    request({
        url: '/tCheckitem/queryCheckitemStatus',
        method: 'get'
})

export const updStatue = (num,cid) =>
request({
  url: '/tCheckitem/' + num + "/cid",
  method: 'put',
  params: {
    cid: cid
  }
})


export const addCheckitem = (item) =>
request({
  url: '/tCheckitem',
  method: 'post',
  data: item
})


export const updateCheckitem = (item) =>
request({
    url: '/tCheckitem',
    method: 'put',
    data: item
})



